package com.cbs.android.component.push.pushinterface;

import java.util.Date;
import java.util.GregorianCalendar;

/**
 * Created by broche on 5/3/16.
 */
public class LocalNotification {
    private String title;
    private String content;
    private String extra;
    private long notificationId;
    private long timestamp;

    public String getTitle() {
        return title;
    }

    public LocalNotification setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getContent() {
        return content;
    }

    public LocalNotification setContent(String content) {
        this.content = content;
        return this;
    }

    public String getExtra() {
        return extra;
    }

    public LocalNotification setExtra(String extra) {
        this.extra = extra;
        return this;
    }

    public long getNotificationId() {
        return notificationId;
    }

    public LocalNotification setNotificationId(long notificationId) {
        this.notificationId = notificationId;
        return this;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public LocalNotification setTimestamp(long timestamp) {
        this.timestamp = timestamp;
        return this;
    }

    public LocalNotification setTimestamp(Date date) {
        this.timestamp = date.getTime();
        return this;
    }

    public LocalNotification setTimestamp(int year, int month, int day, int hour, int minute, int second) {
        GregorianCalendar calendar = new GregorianCalendar(year, month, day, hour, minute, second);
        this.timestamp = calendar.getTime().getTime();
        return this;
    }
}
